#ifndef _TASK_SEM_H_
#define _TASK_SEM_H_
#include <stdio.h>
#include <stdlib.h>
#include <semaphore.h> 
#include <pthread.h>
#include "task.h"

typedef int task_sem_t;


int task_sem_init(task_sem_t *sem, unsigned int valeur);

int task_sem_post(task_sem_t * sem);

int task_sem_wait(task_sem_t * sem);

int task_sem_destroy(task_sem_t * sem);

#endif
